Safe Database Queries with Arithmetic Relations

نویسنده

  • Rodney Topor
چکیده

We consider the theory of database queries on a relational data model that includes a set of xed relations used to model arithmetic comparisons and operations. We describe how to extend several natural query languages such as rst-order logic, Datalog, and stratiied Datalog to apply to databases in this model, and show that their relative expressive power is the same as it is for the standard relational model. We also show how properties such as domain independence and niteness can be deened for queries in this data model, and show how the relationship between these properties varies from that in the standard model. As these properties are undecidable in general, we introduce a natural syntactic class of safe queries, that includes previous such classes, and study the extent to which it implies domain independence and niteness. Finally, we give a simple procedure for translating safe rst-order queries into relational algebra expressions as a basis for evaluating safe queries in all of the above query classes.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Theory of Database Queries with Arithmetic Relations

We consider the theory of database queries on a relational data model that includes a set of xed relations used to model arithmetic comparisons and operations. We describe how to extend several natural query languages such as rst-order logic, Datalog, and strati ed Datalog to to apply to databases in this model, and show that their relative expressive power is the same as it is for the standard...

متن کامل

Relational Databases Query Optimization using Hybrid Evolutionary Algorithm

Optimizing the database queries is one of hard research problems. Exhaustive search techniques like dynamic programming is suitable for queries with a few relations, but by increasing the number of relations in query, much use of memory and processing is needed, and the use of these methods is not suitable, so we have to use random and evolutionary methods. The use of evolutionary methods, beca...

متن کامل

A Database Model for Medical Consultation

The database model presented in this paper is suitable for application in which queries may require non-crisp references to certain attributes. The data item (attribute) values may be crisp or fuzzy. For instance, such adjectives as 'high' or 'normal' may be attribute values for the attribute blood pressure. A disease or a condition can be described by a number of symptoms which may be crisp al...

متن کامل

codeQuest: Scalable Source Code Queries with Datalog

Source code querying tools allow programmers to explore relations between different parts of the code base. This paper describes such a tool, named CodeQuest . It combines two previous proposals, namely the use of logic programming and database systems. As the query language we use safe Datalog, which was originally introduced in the theory of databases. That provides just the right level of ex...

متن کامل

Apply Uncertainty in Document-Oriented Database (MongoDB) Using F-XML

As moving to big data world where data is increasing in unstructured way with high velocity, there is a need of data-store to store this bundle amount of data. Traditionally, relational databases are used which are now not compatible to handle this large amount of data, so it is needed to move on to non-relational data-stores. In the current study, we have proposed an extension of the Mongo...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991